package com.xs.ahoi.hcxs.utils;

import android.os.Handler;

/**
 * 延时操作工具类
 *
 * @author fuhuichao
 * @date 2020-02-02 16:06
 */
public class PostDelayedUtil extends Handler {

    private static PostDelayedUtil instance = null;

    private PostDelayedUtil() {

    }

    private static PostDelayedUtil getInstance() {
        if (instance == null) {
            instance = new PostDelayedUtil();
        }
        return instance;
    }

    public static void doDelayed(Runnable runnable, long timeMills) {
        getInstance().postDelayed(runnable, timeMills);
    }

}
